from random import randint

class Die:
	"""骰子"""
	def __init__(self, sides=6):
		self.sides = sides
	def roll_die(self):
		return randint(1, self.sides)
